package test;

import com.googlecode.adaboost.AdaBoost;
import com.googlecode.adaboost.AdaBoostEngine;
import com.googlecode.adaboost.trainer.AdaBoostConfiguration;
import com.googlecode.adaboost.trainer.Trainer;

/**
 * @version Create on 2012-11-12
 * @author Yinzi Chen
 */

public class AdaBoostTester {

	public static void main(String[] args) throws Exception {

		String trainingFile = "integers.txt";
		String propertiesFile = "properties.conf";

		AdaBoostConfiguration configuration = new AdaBoostConfiguration(
				propertiesFile);
		AdaBoostEngine adaBoost = new AdaBoost();
		Trainer trainer = new Trainer(adaBoost, configuration);
		trainer.train(trainingFile);

	}

}
